<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewInVE.aspx.cs" Inherits="ViewInVE" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>InSTEDD BioForms</title>
</head>
<body>
<script src="http://dev.virtualearth.net/mapcontrol/v5/mapcontrol.js"></script>
<script>
var map = null;
var layerid=1;
function GetMap()
{
map = new VEMap('myMap');
map.LoadMap();
}   
function AddMyLayer(source)
{
var geoRssLayer1 = new VEShapeLayer();
var geoRssLayerSpec1 = new VEShapeSourceSpecification(VEDataType.GeoRSS, source, geoRssLayer1);
map.ImportShapeLayerData(geoRssLayerSpec1, onFeed1Load, false);
}

function onFeed1Load(layer)
{
     var numShapes = layer.GetShapeCount();
     for(var i=0; i < numShapes; ++i)
    {
        var s = layer.GetShapeByIndex(i);
        //s.SetCustomIcon("http://bioforms.clariusconsulting.net/img/icon_red.png");
    }
}
</script>
<body onload="GetMap(); AddMyLayer('http://bioforms.clariusconsulting.net/Feeds/GetFeed.aspx');">
<div id='myMap' style="position:relative; width:800px; height:450px;"></div></body>
</html>
